package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.dto.ConfigData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Alienware
 */
@RestController
public class ConfigClientController {

    @Autowired
    private ConfigData configData;

    @GetMapping("/configInfo")
    private String getConfigInfo(){

        return configData.getConfigInfo();
    }

}
